package valueObjects
{
	
	public final class AppSingleton
	{
		private static var _instance : AppSingleton = new AppSingleton();
		public var global_username:String="";
		public var global_password:String="";
		public var global_userID:int=-1;
		public function AppSingleton()
		{
			if(_instance)
				throw new Error( "Singleton and can only be accessed through SingletonExample.getInstance()" ); 
		}
		
		public static function getInstance() : AppSingleton
		{
			return _instance;
		}
	}
}
